import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
const history = createWebHistory()
const routes: Array<RouteRecordRaw> = [
	{
		path: '/',
		redirect: '/home',
	}, {
		path: '/home',
		name: 'home',
		component: () => import('@/views/home/index.vue')
	}, {
		path: '/login',
		name: 'login',
		component: () => import('@/views/login.vue')
	}, {
		path: '/404',
		name: '404',
		component: () => import('@/views/status/404.vue')
	}, {
		path: '/:pathMatch(.*)/',
		redirect: '/404',
	}
]
const router = createRouter({
	history,
	routes
})

export default router